#include "myScreen.h"

MyScreen::MyScreen()
{
}

MyScreen::~MyScreen()
{
}

void MyScreen::Render()
{
	this->pEngine->GetGraphics()->DrawTexture(this->pMyBackground, 0, 0, (float)this->ScreenWidth(), (float)this->ScreenHeight());

	// Draw the mouse, you can get the mouse position using the engines GetMouseX/Y this will return the position,
	// relitive to the client are (the are where we render)
	this->pEngine->GetGraphics()->DrawTexture(this->pMyTexture, (float)this->pEngine->GetMouseX() - 5.0f, (float)this->pEngine->GetMouseY() - 5.0f);
}

void MyScreen::Update(float fDelta)
{
	
}

void MyScreen::Load()
{
	this->pMyTexture = this->pEngine->GetGraphics()->LoadTexture("media/cursorz!.png");
	this->pMyBackground = this->pEngine->GetGraphics()->LoadTexture("media/bkgd11.png");
}

void MyScreen::Unload()
{
	this->pEngine->GetGraphics()->UnloadTexture(this->pMyTexture);
	this->pEngine->GetGraphics()->UnloadTexture(this->pMyBackground);
}